package com.ylz.sjzx.sio.core.group.processor;

import com.alipay.remoting.Connection;
import com.alipay.remoting.ConnectionEventProcessor;
import com.ylz.sjzx.sio.core.group.manager.GroupRpc;
import lombok.extern.slf4j.Slf4j;


/**
 * @author
 * @version 1.0
 * @date 2021/2/18
 */
@Slf4j
public class RpcClientDisConnectSuccessProcessor implements ConnectionEventProcessor {
    @Override
    public void onEvent(String remoteAddress, Connection connection) {
        GroupRpc.serviceAddr.remove(remoteAddress);
        log.info("====远程服务{}断开连接====", remoteAddress);
    }
}
